home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1995 #5 & #6
/
Amiga Plus CD - 1995 - No. 5 and 6.iso
/
pd
/
datatypes
/
bmp
/
source
/
getbmp.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-11
|
1KB
|
53 lines
/*
** includes + classbase definition for the bmp.datatype
*/
#if !defined(__GNUC__)
#define REG(x)
#else
#define REG(x) asm(#x)
#endif
#include <exec/memory.h>
#include <dos/dos.h>
#include <graphics/gfx.h>
#include <datatypes/pictureclass.h>
struct ClassBase {
struct Library cb_Library;
UWORD cb_Pad1;
BPTR cb_SegList;
struct ExecBase *cb_SysBase;
struct DosLibrary *cb_DOSBase;
struct IntuitionBase *cb_IntuitionBase;
struct GfxBase *cb_GfxBase;
struct UtilityBase *cb_UtilityBase;
struct Library *cb_DataTypesBase;
struct Library *cb_SuperClassBase;
struct IClass *cb_BMPClass;
struct SignalSemaphore cb_Lock;
UWORD cb_Pad2;
};
register struct ClassBase *cb REG(a4);
#define BASE_NAME cb->cb_DataTypesBase
#include <proto/datatypes.h>
#undef BASE_NAME
#define BASE_NAME cb->cb_GfxBase
#include <proto/graphics.h>
#undef BASE_NAME
#define BASE_NAME cb->cb_UtilityBase
#include <proto/utility.h>
#undef BASE_NAME
#define BASE_NAME cb->cb_SysBase
#include <proto/exec.h>
#undef BASE_NAME
#define BASE_NAME cb->cb_DOSBase
#include <proto/dos.h>
#undef BASE_NAME